﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Library.Services.Authentication.Types.Containers;

namespace Gota.Common.Entities.UI
{
    [Serializable]
    public class SystemUserEntity
    {
        public SystemUserEntity()
        {

        }

        public SystemUserEntity(SystemUsersContainer container)
        {
            FirstName = container.SystemUserEntity.FirstName;
            LastName = container.SystemUserEntity.LastName;
            LastLoginDate = container.SystemUserEntity.LastLoginDate ?? container.SystemUserEntity.CreationDate;
            Email = container.SystemUserEntity.Email;
            UserName = container.SystemUserEntity.UserName;
            ID = container.SystemUserEntity.SystemUserId;
        }

        public int ID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime LastLoginDate { get; set; }
        public string Email { get; set; }
        public string UserName { get; set; }

    }
}
